<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "merchant_info".
 *
 * @property int $merchant_id 取merchant
 * @property string $reg_name 注册名称
 * @property string $ico 公司ICO号
 * @property string $reg_address 注册地址
 * @property string $contact_name 联系人
 * @property string $contact_phone 联系人电话
 *
 * @property Merchant $merchant
 */
class MerchantInfo extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'merchant_info';
    }

    /**
     * Gets query for [[Merchant]].
     *
     * @return \yii\db\ActiveQuery
     */
    public function getMerchant()
    {
        return $this->hasOne(Merchant::className(), ['merchant_id' => 'merchant_id']);
    }
}
